package com.itxx.keycase.countdownLatch;

import java.util.concurrent.CountDownLatch;

public class Test {
    public static void main(String[] args) {
        CountDownLatch c = new CountDownLatch(2);
        LThread l = new LThread(c);
        l.setName("小李");
        GThread g = new GThread(c);
        g.setName("小刚");
        MThread m = new MThread(c);
        m.setName("小明");
        l.start();
        m.start();
        g.start();
    }
}
